package com.carleasoft.mps.adu.business.dept.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carleasoft.mps.adu.business.basicsInfo.bean.vo.AuthorityUserInfoVo;
import com.carleasoft.mps.adu.business.dept.bean.entity.DeptEntity;
import com.carleasoft.mps.adu.business.dept.bean.po.DeptPagePo;
import com.carleasoft.mps.adu.business.dept.bean.vo.DeptDetailVo;
import com.carleasoft.mps.adu.business.dept.bean.vo.DeptTreeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * <p>Description: dept dao </p>
 * @since 2020/4/30
 * @author ztm
 */
@Repository
@Mapper
public interface DeptDao extends BaseMapper<DeptEntity> {
    int batchUpdateFullPath(@Param("searchChar") String searchChar , @Param("newChar") String newChar);
    List<DeptTreeVo> selectDeptTree(@Param("deptPagePo") DeptPagePo deptPagePo,@Param("top") String top);
    List<DeptEntity> selectDeptListByParentDeptCode(@Param("deptPagePo") DeptPagePo deptPagePo,@Param("top") String top);
    List<DeptDetailVo> getDeptInfoByDeptNames(@Param("deptNames") Set<String> deptNames);
}
